package com.qyhl.webtv.module_news.news.jlnews.multi.fragment;


import com.qyhl.webtv.commonlib.entity.news.JLMultiNewsListBean;

import java.util.List;

public class JLMultiNewsItemPresenter implements JLMultiNewsItemContract.JLMultiNewsItemPresenter {
    private JLMultiNewsItemModel mModel;
    private JLMultiNewsItemContract.JLMultiNewsItemView mView;

    JLMultiNewsItemPresenter(JLMultiNewsItemContract.JLMultiNewsItemView mView) {
        this.mView = mView;
        this.mModel = new JLMultiNewsItemModel(this);
    }

    @Override
    public void getList(int cityId) {
        mModel.getList(cityId);
    }

    @Override
    public void setList(List<JLMultiNewsListBean> beanList) {
        mView.setList(beanList);
    }

    @Override
    public void setError(int code) {
         mView.setError(code);
    }
}
